extends PlayerStatusBase

var still_time :float = 0
func start() ->void:
	actor.play_animation("attack2")
	still_time = 0
	SoundManager.play_sfx("attack")
	
# Called when the node enters the scene tree for the first time.
func run_physics_process(delta:float) -> void:
	actor.move_and_slide()
	still_time += delta
	var collision_info = actor.move_and_collision_info()
	
	if still_time > 0.2:
		if actor.can_attack(3):
			return change_status("Attack3")
			
		if actor.is_on_floor():
			if actor.velocity.x == 0:
				return change_status("Idle")
			else:
				return change_status("Run")
 
# Called every frame. 'delta' is the elapsed time since the previous frame.
func run_process(delta: float) -> void:
	stand_velocity(delta)
		 

